package models

type User struct {
	Models
	Name     string `json:"name" gorm:"not null;comment:用户名称"`
	Mobile   string `json:"mobile" gorm:"not null;index;comment:手机号"`
	Password string `json:"password" gorm:"not null;default:'';comment:密码"`
	// TimeStamps
	// SoftDeletes
}

type UserSafe struct {
	Models
	Name   string `json:"name" gorm:"not null;comment:用户名称"`
	Mobile string `json:"mobile" gorm:"not null;index;comment:手机号"`
}

// func (user User) GetUid() string {
// 	return strconv.Itoa(int(user.ID.ID))
// }
